package com.koron.order.overhaul.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.order.overhaul.utils.DeleteFlag;
import com.koron.order.overhaul.utils.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("大修工单表-表单下工作成员")
public class OverhaulMajorFormWorker implements Serializable, DeleteFlag, Sortable {
    private static final long serialVersionUID = -35361824375197507L;

    @ApiModelProperty("ID,32位随机数，主键")
    private String id;

    @ApiModelProperty("工单表主键")
    private String overhaulId;

    @ApiModelProperty("专业表ID")
    private String majorId;

    @ApiModelProperty("表单ID")
    private String formId;

    @ApiModelProperty("工作成员类型")
    private String type;

    @ApiModelProperty("工作成员账号")
    private String worker;

    @ApiModelProperty("工作成员名字")
    private String workerName;

    @ApiModelProperty("工作成员单位")
    private String jobDept;

    @ApiModelProperty("工作成员单位名称")
    private String jobDeptName;

    @ApiModelProperty("顺序")
    private Integer sort;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("删除标志, 0：delete_flag=false，代表未删除, 1：delete_flag=true，代表已删除")
    private Boolean deleteFlag;
}
